package com.rc.saas.tenant.model.transfer;

import java.util.ArrayList;
import java.util.List;

public class RcWithdrawSettingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RcWithdrawSettingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountIsNull() {
            addCriterion("single_max_amount is null");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountIsNotNull() {
            addCriterion("single_max_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountEqualTo(Long value) {
            addCriterion("single_max_amount =", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountNotEqualTo(Long value) {
            addCriterion("single_max_amount <>", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountGreaterThan(Long value) {
            addCriterion("single_max_amount >", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("single_max_amount >=", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountLessThan(Long value) {
            addCriterion("single_max_amount <", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountLessThanOrEqualTo(Long value) {
            addCriterion("single_max_amount <=", value, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountIn(List<Long> values) {
            addCriterion("single_max_amount in", values, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountNotIn(List<Long> values) {
            addCriterion("single_max_amount not in", values, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountBetween(Long value1, Long value2) {
            addCriterion("single_max_amount between", value1, value2, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMaxAmountNotBetween(Long value1, Long value2) {
            addCriterion("single_max_amount not between", value1, value2, "singleMaxAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountIsNull() {
            addCriterion("single_min_amount is null");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountIsNotNull() {
            addCriterion("single_min_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountEqualTo(Long value) {
            addCriterion("single_min_amount =", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountNotEqualTo(Long value) {
            addCriterion("single_min_amount <>", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountGreaterThan(Long value) {
            addCriterion("single_min_amount >", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("single_min_amount >=", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountLessThan(Long value) {
            addCriterion("single_min_amount <", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountLessThanOrEqualTo(Long value) {
            addCriterion("single_min_amount <=", value, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountIn(List<Long> values) {
            addCriterion("single_min_amount in", values, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountNotIn(List<Long> values) {
            addCriterion("single_min_amount not in", values, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountBetween(Long value1, Long value2) {
            addCriterion("single_min_amount between", value1, value2, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andSingleMinAmountNotBetween(Long value1, Long value2) {
            addCriterion("single_min_amount not between", value1, value2, "singleMinAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountIsNull() {
            addCriterion("today_total_amount is null");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountIsNotNull() {
            addCriterion("today_total_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountEqualTo(Long value) {
            addCriterion("today_total_amount =", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountNotEqualTo(Long value) {
            addCriterion("today_total_amount <>", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountGreaterThan(Long value) {
            addCriterion("today_total_amount >", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("today_total_amount >=", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountLessThan(Long value) {
            addCriterion("today_total_amount <", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountLessThanOrEqualTo(Long value) {
            addCriterion("today_total_amount <=", value, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountIn(List<Long> values) {
            addCriterion("today_total_amount in", values, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountNotIn(List<Long> values) {
            addCriterion("today_total_amount not in", values, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountBetween(Long value1, Long value2) {
            addCriterion("today_total_amount between", value1, value2, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalAmountNotBetween(Long value1, Long value2) {
            addCriterion("today_total_amount not between", value1, value2, "todayTotalAmount");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumIsNull() {
            addCriterion("today_total_num is null");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumIsNotNull() {
            addCriterion("today_total_num is not null");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumEqualTo(Integer value) {
            addCriterion("today_total_num =", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumNotEqualTo(Integer value) {
            addCriterion("today_total_num <>", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumGreaterThan(Integer value) {
            addCriterion("today_total_num >", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("today_total_num >=", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumLessThan(Integer value) {
            addCriterion("today_total_num <", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumLessThanOrEqualTo(Integer value) {
            addCriterion("today_total_num <=", value, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumIn(List<Integer> values) {
            addCriterion("today_total_num in", values, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumNotIn(List<Integer> values) {
            addCriterion("today_total_num not in", values, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumBetween(Integer value1, Integer value2) {
            addCriterion("today_total_num between", value1, value2, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andTodayTotalNumNotBetween(Integer value1, Integer value2) {
            addCriterion("today_total_num not between", value1, value2, "todayTotalNum");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyIsNull() {
            addCriterion("upper_amouny is null");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyIsNotNull() {
            addCriterion("upper_amouny is not null");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyEqualTo(Long value) {
            addCriterion("upper_amouny =", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyNotEqualTo(Long value) {
            addCriterion("upper_amouny <>", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyGreaterThan(Long value) {
            addCriterion("upper_amouny >", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyGreaterThanOrEqualTo(Long value) {
            addCriterion("upper_amouny >=", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyLessThan(Long value) {
            addCriterion("upper_amouny <", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyLessThanOrEqualTo(Long value) {
            addCriterion("upper_amouny <=", value, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyIn(List<Long> values) {
            addCriterion("upper_amouny in", values, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyNotIn(List<Long> values) {
            addCriterion("upper_amouny not in", values, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyBetween(Long value1, Long value2) {
            addCriterion("upper_amouny between", value1, value2, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andUpperAmounyNotBetween(Long value1, Long value2) {
            addCriterion("upper_amouny not between", value1, value2, "upperAmouny");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeIsNull() {
            addCriterion("formalities_type is null");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeIsNotNull() {
            addCriterion("formalities_type is not null");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeEqualTo(String value) {
            addCriterion("formalities_type =", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeNotEqualTo(String value) {
            addCriterion("formalities_type <>", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeGreaterThan(String value) {
            addCriterion("formalities_type >", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeGreaterThanOrEqualTo(String value) {
            addCriterion("formalities_type >=", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeLessThan(String value) {
            addCriterion("formalities_type <", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeLessThanOrEqualTo(String value) {
            addCriterion("formalities_type <=", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeLike(String value) {
            addCriterion("formalities_type like", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeNotLike(String value) {
            addCriterion("formalities_type not like", value, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeIn(List<String> values) {
            addCriterion("formalities_type in", values, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeNotIn(List<String> values) {
            addCriterion("formalities_type not in", values, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeBetween(String value1, String value2) {
            addCriterion("formalities_type between", value1, value2, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesTypeNotBetween(String value1, String value2) {
            addCriterion("formalities_type not between", value1, value2, "formalitiesType");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeIsNull() {
            addCriterion("formalities_mode is null");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeIsNotNull() {
            addCriterion("formalities_mode is not null");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeEqualTo(String value) {
            addCriterion("formalities_mode =", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeNotEqualTo(String value) {
            addCriterion("formalities_mode <>", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeGreaterThan(String value) {
            addCriterion("formalities_mode >", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeGreaterThanOrEqualTo(String value) {
            addCriterion("formalities_mode >=", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeLessThan(String value) {
            addCriterion("formalities_mode <", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeLessThanOrEqualTo(String value) {
            addCriterion("formalities_mode <=", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeLike(String value) {
            addCriterion("formalities_mode like", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeNotLike(String value) {
            addCriterion("formalities_mode not like", value, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeIn(List<String> values) {
            addCriterion("formalities_mode in", values, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeNotIn(List<String> values) {
            addCriterion("formalities_mode not in", values, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeBetween(String value1, String value2) {
            addCriterion("formalities_mode between", value1, value2, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andFormalitiesModeNotBetween(String value1, String value2) {
            addCriterion("formalities_mode not between", value1, value2, "formalitiesMode");
            return (Criteria) this;
        }

        public Criteria andSingleProportionIsNull() {
            addCriterion("single_proportion is null");
            return (Criteria) this;
        }

        public Criteria andSingleProportionIsNotNull() {
            addCriterion("single_proportion is not null");
            return (Criteria) this;
        }

        public Criteria andSingleProportionEqualTo(Integer value) {
            addCriterion("single_proportion =", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionNotEqualTo(Integer value) {
            addCriterion("single_proportion <>", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionGreaterThan(Integer value) {
            addCriterion("single_proportion >", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionGreaterThanOrEqualTo(Integer value) {
            addCriterion("single_proportion >=", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionLessThan(Integer value) {
            addCriterion("single_proportion <", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionLessThanOrEqualTo(Integer value) {
            addCriterion("single_proportion <=", value, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionIn(List<Integer> values) {
            addCriterion("single_proportion in", values, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionNotIn(List<Integer> values) {
            addCriterion("single_proportion not in", values, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionBetween(Integer value1, Integer value2) {
            addCriterion("single_proportion between", value1, value2, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleProportionNotBetween(Integer value1, Integer value2) {
            addCriterion("single_proportion not between", value1, value2, "singleProportion");
            return (Criteria) this;
        }

        public Criteria andSingleCostIsNull() {
            addCriterion("single_cost is null");
            return (Criteria) this;
        }

        public Criteria andSingleCostIsNotNull() {
            addCriterion("single_cost is not null");
            return (Criteria) this;
        }

        public Criteria andSingleCostEqualTo(Integer value) {
            addCriterion("single_cost =", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostNotEqualTo(Integer value) {
            addCriterion("single_cost <>", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostGreaterThan(Integer value) {
            addCriterion("single_cost >", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostGreaterThanOrEqualTo(Integer value) {
            addCriterion("single_cost >=", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostLessThan(Integer value) {
            addCriterion("single_cost <", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostLessThanOrEqualTo(Integer value) {
            addCriterion("single_cost <=", value, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostIn(List<Integer> values) {
            addCriterion("single_cost in", values, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostNotIn(List<Integer> values) {
            addCriterion("single_cost not in", values, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostBetween(Integer value1, Integer value2) {
            addCriterion("single_cost between", value1, value2, "singleCost");
            return (Criteria) this;
        }

        public Criteria andSingleCostNotBetween(Integer value1, Integer value2) {
            addCriterion("single_cost not between", value1, value2, "singleCost");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}